const ul = document.querySelector(".people")

let people = ["David", "Julia", "Tom", "Jerry"]

let html = ``
function forEachCallBackFun(person, index, array) {
    html += `<li>${ person }</li>`
}

people.forEach(forEachCallBackFun)

ul.innerHTML = html